-
Notifications
You must be signed in to change notification settings - Fork 149
Qedma: QESEM qiskit function + OBP addon tutorial #4003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
|
|
Thank you for the draft @oria-qedma! Is it possible to scale this up to 30+ qubits? cc: @miamico @pandasa123 |
|
Yes it is possible to run this using a larger number of qubits , we just have to play a bit with the parameters to keep the QPU runtime short enough on the one hand but still make sure the example shows some interesting behavior on the other hand. |
|
More feedback from the team: It would be interesting to include a result+depth comparison when using OBP+ QESEM versus just QESEM. Thoughts? cc: @pandasa123 @jenglick |
|
Hi! I'm working on fixing the lint errors. I don't have write access to your branch, but I opened a PR on your fork, so if you can approve/merge it, that should bring those fixes into this PR. Thanks! |
|
Cool, thanks for the draft! Here's some comments for you to work on:
|
Hey @valeriechiang , Thanks fo the feedback! Yeah it could be a nice comparison. Currently the notebook takes around 20 minutes of QPU time (for all the trotter steps up to 9), I'm afraid it might be intimidating for users if it were to take double the time (approximately, haven't tried it yet) let's say 50 minutes.. What do you think? |
Here I guess you meant H2 sections (if i compare to the referenced tutorial)
Hey, thanks for the detailed feedback. I merged the PR and updated the notebook according to a few of the comments (checked them above). I will commit the changes and continue with the other comments later this week. |
|
Authors: If there is an option along the right-hand side of this PR to "Allow edits from maintainers" - can you please enable it, if you don't mind? That way we can commit to your branch. |
@talishnaider-qedma This is a good point. Maybe we can make the comparison to just QESEM optional (and add a disclaimer note that it will take ~50 minutes)? Then we can keep the overall tutorial time estimate as 20 minutes. |
…skit-documentation into qedma/qesem/qf-tutorial
@abbycross I don't see such an option, maybe because I don't have admin rights to the fork? (I think maybe @assafb created the fork originally for other documentation work) |
Thanks for checking! - it's certainly possible that it's an admin-only option. |
…ted results for 35 and 42 qubits subgraphs. Changed title of notebook. And few small changes for clarity.
Regarding this, I thought about it and we do show a QPU time comparison of OBP + QESEM versus just QESEM which shows a reduction of 50% in QPU time (for the 5 trotter steps circuit). As far as I understand, the OBP optimization doesn’t affect the observable results themselves, so I think the comparison might be redundant. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this is looking much better! A few more comments:
- Rename the H2 titles for the Qiskit Patterns steps to follow our standards (e.g. "Step 1: Define circuit and observables" should be "Step 1: Map classical inputs to a quantum problem", others steps need correction too)
- Do I understand correctly that the experiment ran is a 10q example? If that's the case, we really need to bump that number as high as reasonably possible. Something on the 30+ qubits scale would be great! If it becomes problematic for the QPU or classical runtime than it's something that we may want to discuss and highlight resource usage of the technique in the discussion
- nevermind the comment about the layers, I think the visualization of the coupling map is good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I would skip the noisy backend example and go straight to hardware unless it is adding any particular insight ( I can imagine that you could show how the learnt noise model is close to the defined noise model but I don't think this is happening at the moment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@talishnaider-qedma can you take a look? Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey guys, thanks! I'm working on it will let you know when there's a new version
…skit-documentation into qedma/qesem/qf-tutorial
|
I made fixes to the lint failures in this PR here, if you can approve and merge - and it should then update in this PR. |
Qedma/qesem/qf tutorial
|
Hey @valeriechiang @miamico @abbycross I committed an updated version of the notebook, I think I addressed all of the comments above
|
|
@talishnaider-qedma it might be that you haven't signed the CLA yet - can you please check? I am reviewing the tutorial now - will hope to get it in today's deploy if possible. |
|
To complete the setup work on this tutorial, I've had to move it to a new PR (GitHub won't give me permission to work directly with this branch or in the browser, because the git diff is too big 😆 🙃 ) All work is continuing in this PR: #4203 |
|
@talishnaider-qedma, two questions:
|
Supersedes #4003 --------- Co-authored-by: Ori Alberton <ori.alberton@qedma.com>
Hey @abbycross, you're right I signed it now |
is there any more data needed? I could add this was done on ibm_fez
@abbycross I think we are looking at different versions of the notebook |
|
Hm, the branches should have been the same?... I'll sort out the differences so that we can update it! |
|
Ah ok, I see now - there is a lint failure (something in the code, it seems) that is preventing this notebook in this latest version from being viewed properly. I will use the text version from the json file view to try and debug cell by cell. |
|
@talishnaider-qedma Ok, I've fixed the errors in the code (mostly from html tags that the build does not like) and brought over the changes in #4210. |

This is a draft of a Qesem QF tutorial showing simulation of 2d transverse field Ising model with Qesem error mitigation combined with qiskit operator backpropagation module.
Feedback from IBM team is welcome.
FYI @assafb